checkfiles = shici/
black_opts = -l 88 -t py36
.PHONY: lint 
.DEFAULT_GOAL := help
help:
	@grep '^[a-zA-Z]' $(MAKEFILE_LIST) | sort | awk -F ':.*?## ' 'NF==2 {printf "\033[36m  %-25s\033[0m %s\n", $$1, $$2}'

up: ## Update dependencies
	poetry run fast upgrade

deps:
	poetry install

build:  ## Build wheel and zip
	rm -fR dist/
	poetry build

publish: build
	poetry run fast upload

lint: ## Reformat with ruff, then check type hints by mypy
	poetry run fast lint

check: build  ## Checks that build is sane
	poetry run fast check --bandit
	poetry run twine check dist/*

style: ## Auto-formats the code
	poetry run fast lint --skip-mypy

bump: ## Bump up version
	bumpversion patch $* # major/minor/patch
